package com.github.appintro;

import com.github.appintro.model.SliderPage;
import ohos.app.Context;

public class AppIntroFragment extends AppIntroBaseFragment {
    public AppIntroFragment(
            Context context,
            CharSequence title,
            CharSequence description,
            int imageDrawable,
            int backgroundColor,
            int titleColor,
            int descriptionColor,
            int titleTypefaceFontRes,
            int descriptionTypefaceFontRes,
            String titleTypeface,
            String descriptionTypeface,
            int[] backgroundDrawable
    ) {
        super(context);
        SliderPage sliderPage = new SliderPage(
                title,
                description,
                imageDrawable,
                backgroundColor,
                titleColor,
                descriptionColor,
                titleTypefaceFontRes,
                descriptionTypefaceFontRes,
                titleTypeface,
                descriptionTypeface,
                backgroundDrawable
        );
        setArguments(sliderPage.toBundle());
    }

    @Override
    public void setBackgroundColor(int backgroundColor) {
    }

    @Override
    public Object getDefaultBackgroundColor() {
        return null;
    }

    @Override
    public void onSlideSelected() {
    }

    @Override
    public void onSlideDeselected() {

    }
}
